home *** CD-ROM | disk | FTP | other *** search
/ Desktop Publisher Plus / Desktop Publisher Plus (IBM-894)(Cosmi Corporation)(1992).img / INSTALL.BAT < prev    next >
DOS Batch File  |  1992-03-19  |  5KB  |  191 lines

  1. echo off
  2. :getsrc
  3. cls
  4. ECHO If you are not installing to a hard drive, then you must have four blank
  5. ECHO 5.25-inch or two 3.5-inch floppies prepared before installing.
  6. echo label these disks as follows:
  7. echo   5.25-inch: PROGRAM, FONTS, ART, WORK/DOCUMENT
  8. echo   3.5-inch:  PROGRAM & ART, FONTS & WORK/DOCUMENT
  9. echo .
  10. ECHO Continue? (PRESS [y] TO CONTINUE. Any other key aborts.)
  11. echo .
  12. GETUSER
  13. if not errorlevel 121 goto end
  14.  
  15. set DRV=2
  16. set src=
  17. set dst=
  18. set THREE=n
  19.  
  20. echo Do you have only one floppy drive and NO hard disk drive?
  21. echo (Press [y] for YES, or [n] for NO.)
  22. getuser
  23. if errorlevel 121 goto RAMIT
  24. goto noram
  25. rem SETUP RAMDRIVE
  26. :RAMIT
  27. cls
  28. ECHO To install on a single-floppy system, you must boot your computer
  29. echo with a RAMDRIVE specification in the CONFIG.SYS file on your dos boot
  30. echo disk. The ramdrive must be at least 360K bytes in size.
  31. echo .
  32. echo You must also have the line FILES=20 in the CONFIG.SYS file.
  33. echo You must also copy COMMAND.COM from your DOS boot disk to the
  34. echo ramdrive created.
  35. echo .
  36. echo EXAMPLE: If you have IBM DOS version 3.3, Your CONFIG.SYS file should
  37. echo look like:
  38. echo .
  39. echo        FILES=20
  40. ECHO        device=vdisk.sys 360
  41. echo .
  42. echo Other versions of dos use RAMDRIVE.SYS or some other means of setting
  43. echo up a ramdrive. Refer to your dos manual.
  44. echo .
  45. echo If you haven't set up a ramdrive, then quit this install, edit your
  46. echo CONFIG.SYS file, re-boot your computer, make a note of the ramdrive
  47. echo letter, then run this install again.
  48. echo .
  49. echo Quit? (Y/N)
  50. GETUSER
  51. if errorlevel 121 goto end
  52. echo NOTE: Reference to "Disk with batch file" is the SWIFT DTP disk.
  53. pause
  54. echo Enter the RAMDRIVE letter (enter [q] to quit).
  55. getuser
  56. if errorlevel 98 set src=B:
  57. if errorlevel 99 set src=C:
  58. if errorlevel 100 set src=D:
  59. if errorlevel 101 set src=E:
  60. if errorlevel 102 set src=F:
  61. if errorlevel 103 goto END
  62. set DST=A:
  63. set drv=1
  64. %SRC%
  65. copy %dst%install*.bat %src%
  66.  
  67. :getdos
  68. if exist %src%command.com goto havecom
  69. ECHO You must copy COMMAND.COM from your DOS disk to the ramdrive %src%!
  70. echo Install cancelled.
  71. goto endall
  72. pause
  73. :havecom
  74. SET COMSPEC=%SRC%\COMMAND.COM
  75. set path=%src%\;%dst%\
  76. :getdtp
  77. echo .
  78. ECHO Please place the SWIFT DTP disk in the drive
  79. pause
  80. if not exist %DST%sdtppak.exe goto getdtp
  81. COPY %DST%*.* %SRC%
  82. GOTO FLOP
  83.  
  84. :noram
  85. echo enter source drive letter (no ':')
  86. getuser
  87. if errorlevel 99 goto getsrc
  88. if errorlevel 98 goto srcb
  89. if not errorlevel 97 goto getsrc
  90. set src=a:
  91. echo %src%
  92. goto getdst
  93. :srcb
  94. set src=b:
  95. echo %src%
  96. rem - GET DESTINATION DRIVE
  97. :getdst
  98. echo .
  99. echo enter the destination drive letter
  100. getuser
  101. if errorlevel 97 set dst=a:
  102. if errorlevel 98 SET DST=b:
  103. if errorlevel 99 set dst=c:
  104. if errorlevel 100 set dst=d:
  105. if errorlevel 101 set dst=e:
  106. if errorlevel 99 goto hard
  107.  
  108. :dstb
  109. rem --- FLOPPY INSTALL
  110. :flop
  111. %src%
  112. echo .
  113. echo is drive %dst% a 3.5-inch or ...
  114. echo is capicty of drive %dst% greater than 360K ?
  115. echo (Press [y] for yes or [n] for no)
  116. set three=n
  117. getuser
  118. if errorlevel 121 set three=y
  119. echo .
  120. set confirm=n
  121. Echo SOURCE DRIVE........... %src%
  122. echo DESTINATION DRIVE...... %dst%
  123. if %THREE%==y echo DRIVE %dst% HAS STORAGE CAPACITY GREATER THAN 360K.
  124. if %DRV%==1 ECHO YOU HAVE ONE FLOPPY DRIVE AND NO HARD DISK.
  125. echo .
  126. echo Is the above correct? (enter [y] for yes or [n] for no)
  127. GETUSER
  128. if errorlevel 121 set confirm=y
  129. if %confirm%==n goto getsrc
  130. %src%
  131. installf
  132. rem - HARD DISK INSTALL
  133. :hard
  134. set three=n
  135. echo .
  136. set confirm=n
  137. Echo SOURCE DRIVE........... %src%
  138. echo DESTINATION DRIVE...... %dst%
  139. if %THREE%==y echo DRIVE %dst% HAS STORAGE CAPACITY GREATER THAN 360K.
  140. if %DRV%==1 ECHO YOU HAVE ONE FLOPPY DRIVE AND NO HARD DISK.
  141. echo .
  142. echo Is the above correct? (enter [y] for yes or [n] for no)
  143. GETUSER
  144. if errorlevel 121 set confirm=y
  145.  
  146. if %confirm%==n goto getsrc
  147.  
  148. %DST%
  149. cd\
  150. md swiftdtp
  151. cd swiftdtp
  152. md fonts
  153. md clipart
  154.  
  155. echo ** 4 file groups to unpack
  156. %SRC%sdtpPAK
  157. %SRC%BD
  158. %SRC%SAMPLPAK
  159. COPY %SRC%CONFIGH.FIL CONFIG.FIL
  160.  
  161. cd clipart
  162. echo ** 2 more file groups to unpack
  163. %SRC%ARTPAK
  164. cd ..\fonts
  165.  
  166. echo ** 1 more file group to unpack
  167. %SRC%fontPAK
  168. CD..
  169.  
  170.  
  171. echo .
  172. echo After specifying your printer...
  173. echo Type SDTP then press [Enter] to run the SWIFT DESKTOP PUBLISHER.
  174. pause
  175.  
  176.  
  177. :END
  178. set src=
  179. set dst=
  180. set THREE=
  181. set confirm=
  182. set DRV=
  183. set NAME=
  184.  
  185. if exist installp.BAT installp
  186. echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  187. echo Please read the file README.TXT on the distribution disk for 
  188. echo information on editing printer drivers.
  189. echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  190. :endall
  191.